
REM  ----  The WATER Adventure  *.CMD file

COMMAND ANY        
TurnsEquals 555 ; Number of game turns is equal to 555?
PrintMessage 75 ; It's too late, the main computer has shut down, yo
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND ANY        
TurnsEquals 10 ; Number of game turns is equal to 10?
PrintMessage 81 ; The colour of the sky is changing, what used to be
DoneWithTurn
END_COMMAND

COMMAND COLOURS        
PrintMessage 83 ; The possible colours you may use are:             
DoneWithTurn
END_COMMAND

COMMAND DROP SPELL    
PrintMessage 70 ; You know right-well that you can't drop a magic sp
DoneWithTurn
END_COMMAND

COMMAND SITDOWN        
AtLocation 35 ; Player is located at Octagonal Room.
PrintMessage 11 ; You sit down but it doesn't do you any good, you g
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 36 ; Player is located at Bar On Sandplanet 1B.
PrintMessage 12 ; Well done, you saved sandplanet 1B, now your only 
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND OPEN DOOR    
AtLocation 31 ; Player is located at Large Clearing.
PrintMessage 13 ; The door is shut tight, it won't budge. Leave it a
GoToRoom 32 ; Go to location 32 -- Large Opening.
DoneWithTurn
END_COMMAND

COMMAND PUT CHIP IN MACHINE
AtLocation 34 ; Player is located at Second Floor of Tower.
Present 261 ; COMPUTER CHIP is here?
PlusScore 458 ; Add 458 to game score
PrintMessage 14 ; As you place the chip in the machine a small hole 
GoToRoom 35 ; Go to location 35 -- Octagonal Room.
DoneWithTurn
END_COMMAND

COMMAND SITON CHAIR    
AtLocation 35 ; Player is located at Octagonal Room.
Present 203 ; GRAY STONE is here?
PlusScore 484 ; Add 484 to game score
PrintMessage 15 ; You sit on the chair and just as you start to get 
GoToRoom 36 ; Go to location 36 -- Bar On Sandplanet 1B.
DoneWithTurn
END_COMMAND

COMMAND DAY TIME    
AtLocation 31 ; Player is located at Large Clearing.
PrintMessage 16 ; That was smart of you, I'm sorry, I'm going to hav
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND NIGHT TIME    
AtLocation 31 ; Player is located at Large Clearing.
PrintMessage 17 ; That was smart of you, I'm sorry, I'm going to hav
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND EVENING TIME    
AtLocation 31 ; Player is located at Large Clearing.
Present 203 ; GRAY STONE is here?
PlusScore 79 ; Add 79 to game score
PrintMessage 18 ; Well done, that was very clever of you, the door o
GoToRoom 33 ; Go to location 33 -- Inside tower.
DoneWithTurn
END_COMMAND

COMMAND PULL TWIG    
AtLocation 10 ; Player is located at Nest.
Present 201 ; SMALL TWIG is here?
PlusScore 40 ; Add 40 to game score
PrintMessage 1 ; The nest deteriorates and you fall to the ground m
GoToRoom 11 ; Go to location 11 -- Bottom of Tree.
DoneWithTurn
END_COMMAND

COMMAND OPEN JAR    
AtLocation 18 ; Player is located at Inside Shack.
Present 204 ; GLASS JAR is here?
PlusScore 593 ; Add 593 to game score
PrintMessage 3 ; An opening has appeared in the wall which blocked 
GoToRoom 19 ; Go to location 19 -- Inside Attachment to Shack.
DoneWithTurn
END_COMMAND

COMMAND GIVE BISCUIT TO ELF
AtLocation 54 ; Player is located at V in Path.
Present 301 ; EVIL ELF is here?
Present 221 ; DOG BISCUIT is here?
PlusScore 237 ; Add 237 to game score
PrintMessage 30 ; The elf grabs the biscuit and says,               
Destroy 301 ; Destroy noun (EVIL ELF)
SwapLocations 221 222 ; Swap locations of nouns  (DOG BISCUIT) and (FOREST MAP)
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 46 ; Player is located at Mud Pool.
PrintMessage 31 ; You wallow about in the mud for some time, after a
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND EAST        
AtLocation 53 ; Player is located at Crossroads.
PrintMessage 44 ; You walk to the east, everything goes blurry, you 
GoToRoom 141 ; Go to location 141 -- Cell.
DoneWithTurn
END_COMMAND

COMMAND PUT PLUG IN SINK
AtLocation 142 ; Player is located at Wash-Room.
Present 231 ; MARBLE SINK is here?
Present 230 ; SINK PLUG is here?
PlusScore 356 ; Add 356 to game score
SendToRoom 230 231 ; Put item (SINK PLUG) in room 231 (MARBLE SINK)
DoneWithTurn
END_COMMAND

COMMAND TURN TAPS
AtLocation 142 ; Player is located at Wash-Room.
IsLocated 230 231 ; SINK PLUG is located at MARBLE SINK?
PlusScore 1067 ; Add 1067 to game score
PrintMessage 40 ; The sink starts to fill-up with water, after a few
GoToRoom 144 ; Go to location 144 -- Middle of Corridor.
DoneWithTurn
END_COMMAND

COMMAND SOUTH        
AtLocation 142 ; Player is located at Wash-Room.
PrintMessage 41 ; I told you that you couldn't go south, don't you b
DoneWithTurn
END_COMMAND

COMMAND JUMP        
AtLocation 156 ; Player is located at Window Ledge.
Present 233 ; RED STONE is here?
PlusScore 149 ; Add 149 to game score
PrintMessage 42 ; You jump off the edge of the ledge, you float thro
GoToRoom 53 ; Go to location 53 -- Crossroads.
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 146 ; Player is located at Viper Pit.
PrintMessage 43 ; One of the vipers bites your leg, its deadly poiso
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND JUMP        
AtLocation 103 ; Player is located at Trail Junction.
PlusScore 45 ; Add 45 to game score
PrintMessage 45 ; The ground gives-way below your feet and you find 
GoToRoom 111 ; Go to location 111 -- Dark Tunnel.
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 110 ; Player is located at Alter.
PrintMessage 46 ; You feel a sudden sharp stabbing pain in your back
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 109 ; Player is located at Pit.
PrintMessage 47 ; One of the scorpions sends its deadly tail through
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 121 ; Player is located at Midst of Guards.
PrintMessage 48 ; The guards come over to you and grade your arms, t
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND GIVE CAN TO KING
Present 310 ; SLENDER KING is here?
Present 240 ; AEROSOL CAN is here?
PlusScore 39 ; Add 39 to game score
PrintMessage 50 ; The king grabs the can and press the nozzle, every
SwapLocations 240 241 ; Swap locations of nouns  (AEROSOL CAN) and (PURPLE STONE)
DoneWithTurn
END_COMMAND

COMMAND ANY        
AtLocation 115 ; Player is located at Tiger Chamber.
PrintMessage 51 ; The lion takes a leap for you and bites your head 
EndGame ; Game ends at end of turn
DoneWithTurn
END_COMMAND

COMMAND WEST        
AtLocation 125 ; Player is located at West end of Entrance Hall.
IsClosed 263 ; BEDROOM DOOR is CLOSED?
PrintMessage 52 ; The door is closed, if you examined it you would h
DoneWithTurn
END_COMMAND

COMMAND WEST        
AtLocation 125 ; Player is located at West end of Entrance Hall.
IsOpen 263 ; BEDROOM DOOR is OPEN?
PrintMessage 53 ; You walk through the door into the next room.     
GoToRoom 124 ; Go to location 124 -- Beutiful Bedroom.
DoneWithTurn
END_COMMAND

COMMAND WEST        
AtLocation 131 ; Player is located at Library.
IsClosed 264 ; BEDROOM DOOR is CLOSED?
PrintMessage 54 ; The door's closed, you cannot walk through closed 
DoneWithTurn
END_COMMAND

COMMAND WEST        
AtLocation 131 ; Player is located at Library.
IsOpen 264 ; BEDROOM DOOR is OPEN?
PrintMessage 55 ; You walk through the door into the next room.     
GoToRoom 132 ; Go to location 132 -- Bedroom.
DoneWithTurn
END_COMMAND

COMMAND EAST        
AtLocation 128 ; Player is located at Kitchen.
IsClosed 265 ; STORE DOOR is CLOSED?
PrintMessage 56 ; The door to the store is shut, open it first.     
DoneWithTurn
END_COMMAND

COMMAND EAST        
AtLocation 128 ; Player is located at Kitchen.
IsOpen 265 ; STORE DOOR is OPEN?
PrintMessage 57 ; You walk through the door and into the store.     
GoToRoom 129 ; Go to location 129 -- Store.
DoneWithTurn
END_COMMAND

COMMAND OPEN CAN WITH OPENER
Present 250 ; CLOSED CAN is here?
Present 253 ; CAN OPENER is here?
SwapLocations 250 255 ; Swap locations of nouns  (CLOSED CAN) and (OPEN CAN)
PlusScore 47 ; Add 47 to game score
PrintMessage 58 ; You strain a little but finally manage to open the
DoneWithTurn
END_COMMAND

COMMAND PUT CAN IN FIREPLACE
Present 258 ; PETROLIUM CAN is here?
SendToRoom 258 256 ; Put item (PETROLIUM CAN) in room 256 (UNLIT. FIREPLACE)
PlusScore 259 ; Add 259 to game score
DoneWithTurn
END_COMMAND

COMMAND PUT LAMP IN FIREPLACE
Present 262 ; OIL LAMP is here?
IsLocated 258 256 ; PETROLIUM CAN is located at UNLIT. FIREPLACE?
SwapLocations 256 257 ; Swap locations of nouns  (UNLIT. FIREPLACE) and (LIT FIREPLACE)
SwapLocations 259 350 ; Swap locations of nouns  (ICE BLOCK) and (BEAUTIFUL PRINCESS)
SendToRoom 260 1 ; Put item (YELLOW STONE) in room 1 (Carrying it)
PlusScore 184 ; Add 184 to game score
PrintMessage 59 ; The torch slips from your hand into the fire, the 
DoneWithTurn
END_COMMAND

COMMAND GET BOOK    
AtLocation 131 ; Player is located at Library.
PrintMessage 60 ; You pull the book from its shelf, a secret panel o
GoToRoom 133 ; Go to location 133 -- Study.
DoneWithTurn
END_COMMAND

COMMAND THROW SPELL AT STONES
Present 241 ; PURPLE STONE is here?
Present 203 ; GRAY STONE is here?
Present 233 ; RED STONE is here?
Present 254 ; BLACK STONE is here?
Present 260 ; YELLOW STONE is here?
Destroy 241 ; Destroy noun (PURPLE STONE)
Destroy 203 ; Destroy noun (GRAY STONE)
Destroy 233 ; Destroy noun (RED STONE)
Destroy 254 ; Destroy noun (BLACK STONE)
Destroy 260 ; Destroy noun (YELLOW STONE)
SendToRoom 261 1 ; Put item (COMPUTER CHIP) in room 1 (Carrying it)
PlusScore 845 ; Add 845 to game score
PrintMessage 61 ; The stones start to glow and in a blinding flash o
DoneWithTurn
END_COMMAND

COMMAND FUCK        
PrintMessage 65 ; You should be ashamed of yourself!  Such language!
MinusScore 1569 ; Subtract 1569 from game score
DoneWithTurn
END_COMMAND


REM  ----  NO Flags, Counters, and Variables Used

